home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 February
/
Gamestar_81_2006-02_dvd.iso
/
Red Shark
/
Villages
/
Common.script
< prev
next >
Wrap
Text File
|
2001-10-17
|
808b
|
30 lines
//-------------------------------------------------------------------
//
// This code is copyright 2001 by G5 Software.
// Any unauthorized usage, either in part or in whole of this code
// is strictly prohibited. Violators WILL be prosecuted to the
// maximum extent allowed by law.
//
//-------------------------------------------------------------------
class CBaseForAllVillages
{
void OnDetonation(
string _SourceType, // source type (explosion type)
matrix _SourcePlace, // source place
float _Radius // damage radius
)
{
if (_SourceType == "SphericExplosion")
{
DestroyFence(_SourcePlace, _Radius);
}
else
if (_SourceType == "WaveExplosion")
{
DestroyFence(_SourcePlace, _Radius);
}
}
}